<script lang="ts">
  export let text: string = '按钮';
  export let onClick: () => void = () => {};
</script>

<button 
  class="px-4 py-2 bg-blue-500 hover:bg-blue-600 text-white rounded-lg transition-colors"
  on:click={onClick}
>
  {text}
</button> 